package uk.ac.sanger.dasregistry.timer;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CleanRegistryWrapper implements Job{

	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		BeanFactory ctx=(new ClassPathXmlApplicationContext("SpringDAO.xml"));
		CleanRegistry clean=(CleanRegistry)ctx.getBean("clean");
		clean.cleanServers();
		
	}

}
